package edu.uclmgmu.bacteriosec.domain.data;

import java.util.Vector;


public class TestCaseExecuted {
	private String name;
	private int numberOfCalls;
	private int startCall, endCall;

	public TestCaseExecuted(String name) {
		this.name=name;
		this.numberOfCalls=0;
	}
	
	public void setNumberOfCalls(int numberOfCalls) {
		this.numberOfCalls=numberOfCalls;
	}
	
	public int getNumberOfCalls() {
		return this.numberOfCalls;
	}
	
	public String getName() {
		return this.name;
	}
	
	public int getStartCall() {
		return startCall;
	}

	public void setStartCall(int startCall) {
		this.startCall = startCall;
	}

	public int getEndCall() {
		return endCall;
	}

	public void setEndCall(int endCall) {
		this.endCall = endCall;
	}
	
	@Override
	public String toString() {
		return this.name + " (" + this.numberOfCalls + " calls)";
	}

	public String getShortName() {
		return this.name.substring(this.name.lastIndexOf(".")+1);
	}
}
